﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BCEntity.TMS.MarketingCoupon.MarketingCouponAddress
{
    /// <summary>
    ///  优惠券可用地址
    /// </summary>
    [Table("marketingcouponaddress")]
    public class MarketingCouponAddressEntity
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        /// <summary>
        /// 营销优惠券可选地区id
        /// </summary>
        public long MarketingCouponAddressId { get; set; }
        /// <summary>
        /// 营销优惠券类型Id
        /// </summary>
        public long MarketingCouponTypeId { get; set; }
        /// <summary>
        /// 优惠券类型
        /// </summary>
        public string CouponType { get; set; }
        /// <summary>
        /// 优惠券名称
        /// </summary>
        public string CouponName { get; set; }
        /// <summary>
        /// 优惠券摘要
        /// </summary>
        public string CouponSummark { get; set; }
        /// <summary>
        /// 开始日期
        /// </summary>
        public DateTime StartDate { get; set; }
        /// <summary>
        /// 结束日期
        /// </summary>
        public DateTime EndDate { get; set; }
        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal CouponAmount { get; set; }
        /// <summary>
        /// 优惠券总数
        /// </summary>
        public int CouponCount { get; set; }
        /// <summary>
        /// 代理商id
        /// </summary>
        public long? AgentRecordId { get; set; }
        /// <summary>
        /// 是否通用
        /// </summary>
        public bool IsCommon { get; set; }
        /// <summary>
        /// 省编号
        /// </summary>
        public string ProvinceCode { get; set; }
        /// <summary>
        /// 市编号
        /// </summary>
        public string CityCode { get; set; }
        /// <summary>
        /// 区编号
        /// </summary>
        public string CountyCode { get; set; }
        /// <summary>
        /// 创建人Id
        /// </summary>
        public long CreateAdminId { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateAdminName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

    }
}
